package com.bwie.vo;

import com.bwie.utils.MobileMessageUtil;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Author: zhaijiaqi
 * @Date: 2025/6/19 18:45
 * @Description:
 **/
@Data
public class LoginVo implements Serializable {

    @NotBlank(message = "账号不能为空")
    @Size(min = 3,message = "账号最小为三位数")
    private String userName;
    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{6,}$",message = "密码最小为六位数必须包含大小写数字")
    private String userPass;
}
